Skip to content

Fix #14959 (Warning hash for token-based warnings) - #8778

Open
danmar wants to merge 4 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-14959
Open

Fix #14959 (Warning hash for token-based warnings)#8778
danmar wants to merge 4 commits into
cppcheck-opensource:mainfrom
cppchecksolutions:fix-14959

Conversation

@danmar

@danmar danmar commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces deterministic “warning hash” generation for token-based warnings by computing and emitting a hash attribute in XML output, and updates build dependencies and CLI tests accordingly.

Changes:

  • Compute and store a warning hash from token callstacks/error paths in ErrorMessage.
  • Emit the hash attribute in XML output and update CLI XML-output expectations.
  • Update Makefile dependency lists to reflect new header usage.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test/cli/other_test.py Updates expected XML output to include the new hash attribute.
oss-fuzz/Makefile Adds missing header dependencies for errorlogger.o in the OSS-Fuzz build.
Makefile Adds missing header dependencies for errorlogger.o in the main build.
lib/errorlogger.h Declares ErrorMessage::calculateWarningHash helper.
lib/errorlogger.cpp Implements warning hash computation and wires it into relevant constructors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/errorlogger.cpp
danmar and others added 2 commits August 6, 2026 16:06
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants